<table class="table">
	<tr>
		<th>No</th>				
		<th>Full Name</th>
		<th>User Name</th>
		<th>Gender</th>
		<th>Email</th>
		<th>Country</th>
		<th>Phone Number</th>				
		<th>Status</th>
		<th>Action</th>
	</tr>	
<?php


if (isset($result) and is_array($result)) {
	$No =1;
	foreach ($result as $value) {

		if ($value->status == 1) {
			$status = 'Approved';
		}else{
			$status = 'Pending';
		}

		if ($value->gender == 1) {
			$gender = 'Male';
		}else{	
			$gender = 'Female';
		}

	 echo '<td><a>'.$No.'</a></td>';		 	 
	 echo '<td><a>'.$value->fullname.'</a></td>';
	 echo '<td><a>'.$value->username.'</a></td>';
	 echo '<td><a>'.$gender.'</a></td>';
	 echo '<td><a>'.$value->email.'</a></td>';
	 echo '<td><a>'.$value->country_name.'</a></td>';
	 echo '<td><a>'.$value->phone_num.'</a></td>';	 
	 echo '<td><a>'.$status.'</a></td>';
	 
	 echo '<td>';
	 echo '<div class="row">';	 
	 echo anchor("admin/editUser/".$value->userid,'<b>Edit</b>');
	 echo nbs(2).'|'.nbs(2);
	 echo anchor("admin/deleteUser/".$value->userid,'<b>Delete</b>');	 
	 echo '</div>';

	 echo '</td>';
	 echo '</tr>';

	$No+=1;
	}
}	

?>

</table>